// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file onboard_computer_status.cpp
 * This source file contains the definition of the described types in the IDL file.
 *
 * This file was generated by the tool gen.
 */

#ifdef _WIN32
// Remove linker warning LNK4221 on Visual Studio
namespace { char dummy; }
#endif

#include "onboard_computer_status.h"
#include <fastcdr/Cdr.h>

#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;

#include <utility>







onboard_computer_status::onboard_computer_status()
{
    // m_timestamp_ com.eprosima.idl.parser.typecode.PrimitiveTypeCode@5bb21b69
    m_timestamp_ = 0;
    // m_uptime_ com.eprosima.idl.parser.typecode.PrimitiveTypeCode@6b9651f3
    m_uptime_ = 0;
    // m_type_ com.eprosima.idl.parser.typecode.PrimitiveTypeCode@38bc8ab5
    m_type_ = 0;
    // m_cpu_cores com.eprosima.idl.parser.typecode.AliasTypeCode@687080dc
    memset(&m_cpu_cores, 0, (8) * 1);
    // m_cpu_combined com.eprosima.idl.parser.typecode.AliasTypeCode@23d2a7e8
    memset(&m_cpu_combined, 0, (10) * 1);
    // m_gpu_cores com.eprosima.idl.parser.typecode.AliasTypeCode@26a7b76d
    memset(&m_gpu_cores, 0, (4) * 1);
    // m_gpu_combined com.eprosima.idl.parser.typecode.AliasTypeCode@23d2a7e8
    memset(&m_gpu_combined, 0, (10) * 1);
    // m_temperature_board_ com.eprosima.idl.parser.typecode.PrimitiveTypeCode@4abdb505
    m_temperature_board_ = 0;
    // m_temperature_core com.eprosima.idl.parser.typecode.AliasTypeCode@687080dc
    memset(&m_temperature_core, 0, (8) * 1);
    // m_fan_speed com.eprosima.idl.parser.typecode.AliasTypeCode@7ce6a65d
    memset(&m_fan_speed, 0, (4) * 2);
    // m_ram_usage_ com.eprosima.idl.parser.typecode.PrimitiveTypeCode@e874448
    m_ram_usage_ = 0;
    // m_ram_total_ com.eprosima.idl.parser.typecode.PrimitiveTypeCode@29b5cd00
    m_ram_total_ = 0;
    // m_storage_type com.eprosima.idl.parser.typecode.AliasTypeCode@60285225
    memset(&m_storage_type, 0, (4) * 4);
    // m_storage_usage com.eprosima.idl.parser.typecode.AliasTypeCode@60285225
    memset(&m_storage_usage, 0, (4) * 4);
    // m_storage_total com.eprosima.idl.parser.typecode.AliasTypeCode@60285225
    memset(&m_storage_total, 0, (4) * 4);
    // m_link_type com.eprosima.idl.parser.typecode.AliasTypeCode@42d8062c
    memset(&m_link_type, 0, (6) * 4);
    // m_link_tx_rate com.eprosima.idl.parser.typecode.AliasTypeCode@42d8062c
    memset(&m_link_tx_rate, 0, (6) * 4);
    // m_link_rx_rate com.eprosima.idl.parser.typecode.AliasTypeCode@42d8062c
    memset(&m_link_rx_rate, 0, (6) * 4);
    // m_link_tx_max com.eprosima.idl.parser.typecode.AliasTypeCode@42d8062c
    memset(&m_link_tx_max, 0, (6) * 4);
    // m_link_rx_max com.eprosima.idl.parser.typecode.AliasTypeCode@42d8062c
    memset(&m_link_rx_max, 0, (6) * 4);

}

onboard_computer_status::~onboard_computer_status()
{




















}

onboard_computer_status::onboard_computer_status(const onboard_computer_status &x)
{
    m_timestamp_ = x.m_timestamp_;
    m_uptime_ = x.m_uptime_;
    m_type_ = x.m_type_;
    m_cpu_cores = x.m_cpu_cores;
    m_cpu_combined = x.m_cpu_combined;
    m_gpu_cores = x.m_gpu_cores;
    m_gpu_combined = x.m_gpu_combined;
    m_temperature_board_ = x.m_temperature_board_;
    m_temperature_core = x.m_temperature_core;
    m_fan_speed = x.m_fan_speed;
    m_ram_usage_ = x.m_ram_usage_;
    m_ram_total_ = x.m_ram_total_;
    m_storage_type = x.m_storage_type;
    m_storage_usage = x.m_storage_usage;
    m_storage_total = x.m_storage_total;
    m_link_type = x.m_link_type;
    m_link_tx_rate = x.m_link_tx_rate;
    m_link_rx_rate = x.m_link_rx_rate;
    m_link_tx_max = x.m_link_tx_max;
    m_link_rx_max = x.m_link_rx_max;
}

onboard_computer_status::onboard_computer_status(onboard_computer_status &&x)
{
    m_timestamp_ = x.m_timestamp_;
    m_uptime_ = x.m_uptime_;
    m_type_ = x.m_type_;
    m_cpu_cores = std::move(x.m_cpu_cores);
    m_cpu_combined = std::move(x.m_cpu_combined);
    m_gpu_cores = std::move(x.m_gpu_cores);
    m_gpu_combined = std::move(x.m_gpu_combined);
    m_temperature_board_ = x.m_temperature_board_;
    m_temperature_core = std::move(x.m_temperature_core);
    m_fan_speed = std::move(x.m_fan_speed);
    m_ram_usage_ = x.m_ram_usage_;
    m_ram_total_ = x.m_ram_total_;
    m_storage_type = std::move(x.m_storage_type);
    m_storage_usage = std::move(x.m_storage_usage);
    m_storage_total = std::move(x.m_storage_total);
    m_link_type = std::move(x.m_link_type);
    m_link_tx_rate = std::move(x.m_link_tx_rate);
    m_link_rx_rate = std::move(x.m_link_rx_rate);
    m_link_tx_max = std::move(x.m_link_tx_max);
    m_link_rx_max = std::move(x.m_link_rx_max);
}

onboard_computer_status& onboard_computer_status::operator=(const onboard_computer_status &x)
{

    m_timestamp_ = x.m_timestamp_;
    m_uptime_ = x.m_uptime_;
    m_type_ = x.m_type_;
    m_cpu_cores = x.m_cpu_cores;
    m_cpu_combined = x.m_cpu_combined;
    m_gpu_cores = x.m_gpu_cores;
    m_gpu_combined = x.m_gpu_combined;
    m_temperature_board_ = x.m_temperature_board_;
    m_temperature_core = x.m_temperature_core;
    m_fan_speed = x.m_fan_speed;
    m_ram_usage_ = x.m_ram_usage_;
    m_ram_total_ = x.m_ram_total_;
    m_storage_type = x.m_storage_type;
    m_storage_usage = x.m_storage_usage;
    m_storage_total = x.m_storage_total;
    m_link_type = x.m_link_type;
    m_link_tx_rate = x.m_link_tx_rate;
    m_link_rx_rate = x.m_link_rx_rate;
    m_link_tx_max = x.m_link_tx_max;
    m_link_rx_max = x.m_link_rx_max;

    return *this;
}

onboard_computer_status& onboard_computer_status::operator=(onboard_computer_status &&x)
{

    m_timestamp_ = x.m_timestamp_;
    m_uptime_ = x.m_uptime_;
    m_type_ = x.m_type_;
    m_cpu_cores = std::move(x.m_cpu_cores);
    m_cpu_combined = std::move(x.m_cpu_combined);
    m_gpu_cores = std::move(x.m_gpu_cores);
    m_gpu_combined = std::move(x.m_gpu_combined);
    m_temperature_board_ = x.m_temperature_board_;
    m_temperature_core = std::move(x.m_temperature_core);
    m_fan_speed = std::move(x.m_fan_speed);
    m_ram_usage_ = x.m_ram_usage_;
    m_ram_total_ = x.m_ram_total_;
    m_storage_type = std::move(x.m_storage_type);
    m_storage_usage = std::move(x.m_storage_usage);
    m_storage_total = std::move(x.m_storage_total);
    m_link_type = std::move(x.m_link_type);
    m_link_tx_rate = std::move(x.m_link_tx_rate);
    m_link_rx_rate = std::move(x.m_link_rx_rate);
    m_link_tx_max = std::move(x.m_link_tx_max);
    m_link_rx_max = std::move(x.m_link_rx_max);

    return *this;
}

size_t onboard_computer_status::getMaxCdrSerializedSize(size_t current_alignment)
{
    size_t initial_alignment = current_alignment;


    current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);


    current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += ((8) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += ((10) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += ((4) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += ((10) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += ((8) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    current_alignment += ((4) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2);


    current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((4) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((4) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((4) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);



    return current_alignment - initial_alignment;
}

size_t onboard_computer_status::getCdrSerializedSize(const onboard_computer_status& data, size_t current_alignment)
{
    (void)data;
    size_t initial_alignment = current_alignment;


    current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);


    current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    if ((8) > 0)
    {
        current_alignment += ((8) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
    }

    if ((10) > 0)
    {
        current_alignment += ((10) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
    }

    if ((4) > 0)
    {
        current_alignment += ((4) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
    }

    if ((10) > 0)
    {
        current_alignment += ((10) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
    }

    current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);


    if ((8) > 0)
    {
        current_alignment += ((8) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
    }

    if ((4) > 0)
    {
        current_alignment += ((4) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2);
    }

    current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);


    if ((4) > 0)
    {
        current_alignment += ((4) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((4) > 0)
    {
        current_alignment += ((4) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((4) > 0)
    {
        current_alignment += ((4) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((6) > 0)
    {
        current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((6) > 0)
    {
        current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((6) > 0)
    {
        current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((6) > 0)
    {
        current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }

    if ((6) > 0)
    {
        current_alignment += ((6) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
    }


    return current_alignment - initial_alignment;
}

void onboard_computer_status::serialize(eprosima::fastcdr::Cdr &scdr) const
{

    scdr << m_timestamp_;
    scdr << m_uptime_;
    scdr << m_type_;
    scdr << m_cpu_cores;

    scdr << m_cpu_combined;

    scdr << m_gpu_cores;

    scdr << m_gpu_combined;

    scdr << m_temperature_board_;
    scdr << m_temperature_core;

    scdr << m_fan_speed;

    scdr << m_ram_usage_;
    scdr << m_ram_total_;
    scdr << m_storage_type;

    scdr << m_storage_usage;

    scdr << m_storage_total;

    scdr << m_link_type;

    scdr << m_link_tx_rate;

    scdr << m_link_rx_rate;

    scdr << m_link_tx_max;

    scdr << m_link_rx_max;

}

void onboard_computer_status::deserialize(eprosima::fastcdr::Cdr &dcdr)
{

    dcdr >> m_timestamp_;
    dcdr >> m_uptime_;
    dcdr >> m_type_;
    dcdr >> m_cpu_cores;

    dcdr >> m_cpu_combined;

    dcdr >> m_gpu_cores;

    dcdr >> m_gpu_combined;

    dcdr >> m_temperature_board_;
    dcdr >> m_temperature_core;

    dcdr >> m_fan_speed;

    dcdr >> m_ram_usage_;
    dcdr >> m_ram_total_;
    dcdr >> m_storage_type;

    dcdr >> m_storage_usage;

    dcdr >> m_storage_total;

    dcdr >> m_link_type;

    dcdr >> m_link_tx_rate;

    dcdr >> m_link_rx_rate;

    dcdr >> m_link_tx_max;

    dcdr >> m_link_rx_max;

}

/*!
 * @brief This function sets a value in member timestamp_
 * @param _timestamp_ New value for member timestamp_
 */
void onboard_computer_status::timestamp_(uint64_t _timestamp_)
{
m_timestamp_ = _timestamp_;
}

/*!
 * @brief This function returns the value of member timestamp_
 * @return Value of member timestamp_
 */
uint64_t onboard_computer_status::timestamp_() const
{
    return m_timestamp_;
}

/*!
 * @brief This function returns a reference to member timestamp_
 * @return Reference to member timestamp_
 */
uint64_t& onboard_computer_status::timestamp_()
{
    return m_timestamp_;
}

/*!
 * @brief This function sets a value in member uptime_
 * @param _uptime_ New value for member uptime_
 */
void onboard_computer_status::uptime_(uint32_t _uptime_)
{
m_uptime_ = _uptime_;
}

/*!
 * @brief This function returns the value of member uptime_
 * @return Value of member uptime_
 */
uint32_t onboard_computer_status::uptime_() const
{
    return m_uptime_;
}

/*!
 * @brief This function returns a reference to member uptime_
 * @return Reference to member uptime_
 */
uint32_t& onboard_computer_status::uptime_()
{
    return m_uptime_;
}

/*!
 * @brief This function sets a value in member type_
 * @param _type_ New value for member type_
 */
void onboard_computer_status::type_(uint8_t _type_)
{
m_type_ = _type_;
}

/*!
 * @brief This function returns the value of member type_
 * @return Value of member type_
 */
uint8_t onboard_computer_status::type_() const
{
    return m_type_;
}

/*!
 * @brief This function returns a reference to member type_
 * @return Reference to member type_
 */
uint8_t& onboard_computer_status::type_()
{
    return m_type_;
}

/*!
 * @brief This function copies the value in member cpu_cores
 * @param _cpu_cores New value to be copied in member cpu_cores
 */
void onboard_computer_status::cpu_cores(const onboard_computer_status__octet_array_8 &_cpu_cores)
{
m_cpu_cores = _cpu_cores;
}

/*!
 * @brief This function moves the value in member cpu_cores
 * @param _cpu_cores New value to be moved in member cpu_cores
 */
void onboard_computer_status::cpu_cores(onboard_computer_status__octet_array_8 &&_cpu_cores)
{
m_cpu_cores = std::move(_cpu_cores);
}

/*!
 * @brief This function returns a constant reference to member cpu_cores
 * @return Constant reference to member cpu_cores
 */
const onboard_computer_status__octet_array_8& onboard_computer_status::cpu_cores() const
{
    return m_cpu_cores;
}

/*!
 * @brief This function returns a reference to member cpu_cores
 * @return Reference to member cpu_cores
 */
onboard_computer_status__octet_array_8& onboard_computer_status::cpu_cores()
{
    return m_cpu_cores;
}
/*!
 * @brief This function copies the value in member cpu_combined
 * @param _cpu_combined New value to be copied in member cpu_combined
 */
void onboard_computer_status::cpu_combined(const onboard_computer_status__octet_array_10 &_cpu_combined)
{
m_cpu_combined = _cpu_combined;
}

/*!
 * @brief This function moves the value in member cpu_combined
 * @param _cpu_combined New value to be moved in member cpu_combined
 */
void onboard_computer_status::cpu_combined(onboard_computer_status__octet_array_10 &&_cpu_combined)
{
m_cpu_combined = std::move(_cpu_combined);
}

/*!
 * @brief This function returns a constant reference to member cpu_combined
 * @return Constant reference to member cpu_combined
 */
const onboard_computer_status__octet_array_10& onboard_computer_status::cpu_combined() const
{
    return m_cpu_combined;
}

/*!
 * @brief This function returns a reference to member cpu_combined
 * @return Reference to member cpu_combined
 */
onboard_computer_status__octet_array_10& onboard_computer_status::cpu_combined()
{
    return m_cpu_combined;
}
/*!
 * @brief This function copies the value in member gpu_cores
 * @param _gpu_cores New value to be copied in member gpu_cores
 */
void onboard_computer_status::gpu_cores(const onboard_computer_status__octet_array_4 &_gpu_cores)
{
m_gpu_cores = _gpu_cores;
}

/*!
 * @brief This function moves the value in member gpu_cores
 * @param _gpu_cores New value to be moved in member gpu_cores
 */
void onboard_computer_status::gpu_cores(onboard_computer_status__octet_array_4 &&_gpu_cores)
{
m_gpu_cores = std::move(_gpu_cores);
}

/*!
 * @brief This function returns a constant reference to member gpu_cores
 * @return Constant reference to member gpu_cores
 */
const onboard_computer_status__octet_array_4& onboard_computer_status::gpu_cores() const
{
    return m_gpu_cores;
}

/*!
 * @brief This function returns a reference to member gpu_cores
 * @return Reference to member gpu_cores
 */
onboard_computer_status__octet_array_4& onboard_computer_status::gpu_cores()
{
    return m_gpu_cores;
}
/*!
 * @brief This function copies the value in member gpu_combined
 * @param _gpu_combined New value to be copied in member gpu_combined
 */
void onboard_computer_status::gpu_combined(const onboard_computer_status__octet_array_10 &_gpu_combined)
{
m_gpu_combined = _gpu_combined;
}

/*!
 * @brief This function moves the value in member gpu_combined
 * @param _gpu_combined New value to be moved in member gpu_combined
 */
void onboard_computer_status::gpu_combined(onboard_computer_status__octet_array_10 &&_gpu_combined)
{
m_gpu_combined = std::move(_gpu_combined);
}

/*!
 * @brief This function returns a constant reference to member gpu_combined
 * @return Constant reference to member gpu_combined
 */
const onboard_computer_status__octet_array_10& onboard_computer_status::gpu_combined() const
{
    return m_gpu_combined;
}

/*!
 * @brief This function returns a reference to member gpu_combined
 * @return Reference to member gpu_combined
 */
onboard_computer_status__octet_array_10& onboard_computer_status::gpu_combined()
{
    return m_gpu_combined;
}
/*!
 * @brief This function sets a value in member temperature_board_
 * @param _temperature_board_ New value for member temperature_board_
 */
void onboard_computer_status::temperature_board_(uint8_t _temperature_board_)
{
m_temperature_board_ = _temperature_board_;
}

/*!
 * @brief This function returns the value of member temperature_board_
 * @return Value of member temperature_board_
 */
uint8_t onboard_computer_status::temperature_board_() const
{
    return m_temperature_board_;
}

/*!
 * @brief This function returns a reference to member temperature_board_
 * @return Reference to member temperature_board_
 */
uint8_t& onboard_computer_status::temperature_board_()
{
    return m_temperature_board_;
}

/*!
 * @brief This function copies the value in member temperature_core
 * @param _temperature_core New value to be copied in member temperature_core
 */
void onboard_computer_status::temperature_core(const onboard_computer_status__octet_array_8 &_temperature_core)
{
m_temperature_core = _temperature_core;
}

/*!
 * @brief This function moves the value in member temperature_core
 * @param _temperature_core New value to be moved in member temperature_core
 */
void onboard_computer_status::temperature_core(onboard_computer_status__octet_array_8 &&_temperature_core)
{
m_temperature_core = std::move(_temperature_core);
}

/*!
 * @brief This function returns a constant reference to member temperature_core
 * @return Constant reference to member temperature_core
 */
const onboard_computer_status__octet_array_8& onboard_computer_status::temperature_core() const
{
    return m_temperature_core;
}

/*!
 * @brief This function returns a reference to member temperature_core
 * @return Reference to member temperature_core
 */
onboard_computer_status__octet_array_8& onboard_computer_status::temperature_core()
{
    return m_temperature_core;
}
/*!
 * @brief This function copies the value in member fan_speed
 * @param _fan_speed New value to be copied in member fan_speed
 */
void onboard_computer_status::fan_speed(const onboard_computer_status__short_array_4 &_fan_speed)
{
m_fan_speed = _fan_speed;
}

/*!
 * @brief This function moves the value in member fan_speed
 * @param _fan_speed New value to be moved in member fan_speed
 */
void onboard_computer_status::fan_speed(onboard_computer_status__short_array_4 &&_fan_speed)
{
m_fan_speed = std::move(_fan_speed);
}

/*!
 * @brief This function returns a constant reference to member fan_speed
 * @return Constant reference to member fan_speed
 */
const onboard_computer_status__short_array_4& onboard_computer_status::fan_speed() const
{
    return m_fan_speed;
}

/*!
 * @brief This function returns a reference to member fan_speed
 * @return Reference to member fan_speed
 */
onboard_computer_status__short_array_4& onboard_computer_status::fan_speed()
{
    return m_fan_speed;
}
/*!
 * @brief This function sets a value in member ram_usage_
 * @param _ram_usage_ New value for member ram_usage_
 */
void onboard_computer_status::ram_usage_(uint32_t _ram_usage_)
{
m_ram_usage_ = _ram_usage_;
}

/*!
 * @brief This function returns the value of member ram_usage_
 * @return Value of member ram_usage_
 */
uint32_t onboard_computer_status::ram_usage_() const
{
    return m_ram_usage_;
}

/*!
 * @brief This function returns a reference to member ram_usage_
 * @return Reference to member ram_usage_
 */
uint32_t& onboard_computer_status::ram_usage_()
{
    return m_ram_usage_;
}

/*!
 * @brief This function sets a value in member ram_total_
 * @param _ram_total_ New value for member ram_total_
 */
void onboard_computer_status::ram_total_(uint32_t _ram_total_)
{
m_ram_total_ = _ram_total_;
}

/*!
 * @brief This function returns the value of member ram_total_
 * @return Value of member ram_total_
 */
uint32_t onboard_computer_status::ram_total_() const
{
    return m_ram_total_;
}

/*!
 * @brief This function returns a reference to member ram_total_
 * @return Reference to member ram_total_
 */
uint32_t& onboard_computer_status::ram_total_()
{
    return m_ram_total_;
}

/*!
 * @brief This function copies the value in member storage_type
 * @param _storage_type New value to be copied in member storage_type
 */
void onboard_computer_status::storage_type(const onboard_computer_status__unsigned_long_array_4 &_storage_type)
{
m_storage_type = _storage_type;
}

/*!
 * @brief This function moves the value in member storage_type
 * @param _storage_type New value to be moved in member storage_type
 */
void onboard_computer_status::storage_type(onboard_computer_status__unsigned_long_array_4 &&_storage_type)
{
m_storage_type = std::move(_storage_type);
}

/*!
 * @brief This function returns a constant reference to member storage_type
 * @return Constant reference to member storage_type
 */
const onboard_computer_status__unsigned_long_array_4& onboard_computer_status::storage_type() const
{
    return m_storage_type;
}

/*!
 * @brief This function returns a reference to member storage_type
 * @return Reference to member storage_type
 */
onboard_computer_status__unsigned_long_array_4& onboard_computer_status::storage_type()
{
    return m_storage_type;
}
/*!
 * @brief This function copies the value in member storage_usage
 * @param _storage_usage New value to be copied in member storage_usage
 */
void onboard_computer_status::storage_usage(const onboard_computer_status__unsigned_long_array_4 &_storage_usage)
{
m_storage_usage = _storage_usage;
}

/*!
 * @brief This function moves the value in member storage_usage
 * @param _storage_usage New value to be moved in member storage_usage
 */
void onboard_computer_status::storage_usage(onboard_computer_status__unsigned_long_array_4 &&_storage_usage)
{
m_storage_usage = std::move(_storage_usage);
}

/*!
 * @brief This function returns a constant reference to member storage_usage
 * @return Constant reference to member storage_usage
 */
const onboard_computer_status__unsigned_long_array_4& onboard_computer_status::storage_usage() const
{
    return m_storage_usage;
}

/*!
 * @brief This function returns a reference to member storage_usage
 * @return Reference to member storage_usage
 */
onboard_computer_status__unsigned_long_array_4& onboard_computer_status::storage_usage()
{
    return m_storage_usage;
}
/*!
 * @brief This function copies the value in member storage_total
 * @param _storage_total New value to be copied in member storage_total
 */
void onboard_computer_status::storage_total(const onboard_computer_status__unsigned_long_array_4 &_storage_total)
{
m_storage_total = _storage_total;
}

/*!
 * @brief This function moves the value in member storage_total
 * @param _storage_total New value to be moved in member storage_total
 */
void onboard_computer_status::storage_total(onboard_computer_status__unsigned_long_array_4 &&_storage_total)
{
m_storage_total = std::move(_storage_total);
}

/*!
 * @brief This function returns a constant reference to member storage_total
 * @return Constant reference to member storage_total
 */
const onboard_computer_status__unsigned_long_array_4& onboard_computer_status::storage_total() const
{
    return m_storage_total;
}

/*!
 * @brief This function returns a reference to member storage_total
 * @return Reference to member storage_total
 */
onboard_computer_status__unsigned_long_array_4& onboard_computer_status::storage_total()
{
    return m_storage_total;
}
/*!
 * @brief This function copies the value in member link_type
 * @param _link_type New value to be copied in member link_type
 */
void onboard_computer_status::link_type(const onboard_computer_status__unsigned_long_array_6 &_link_type)
{
m_link_type = _link_type;
}

/*!
 * @brief This function moves the value in member link_type
 * @param _link_type New value to be moved in member link_type
 */
void onboard_computer_status::link_type(onboard_computer_status__unsigned_long_array_6 &&_link_type)
{
m_link_type = std::move(_link_type);
}

/*!
 * @brief This function returns a constant reference to member link_type
 * @return Constant reference to member link_type
 */
const onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_type() const
{
    return m_link_type;
}

/*!
 * @brief This function returns a reference to member link_type
 * @return Reference to member link_type
 */
onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_type()
{
    return m_link_type;
}
/*!
 * @brief This function copies the value in member link_tx_rate
 * @param _link_tx_rate New value to be copied in member link_tx_rate
 */
void onboard_computer_status::link_tx_rate(const onboard_computer_status__unsigned_long_array_6 &_link_tx_rate)
{
m_link_tx_rate = _link_tx_rate;
}

/*!
 * @brief This function moves the value in member link_tx_rate
 * @param _link_tx_rate New value to be moved in member link_tx_rate
 */
void onboard_computer_status::link_tx_rate(onboard_computer_status__unsigned_long_array_6 &&_link_tx_rate)
{
m_link_tx_rate = std::move(_link_tx_rate);
}

/*!
 * @brief This function returns a constant reference to member link_tx_rate
 * @return Constant reference to member link_tx_rate
 */
const onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_tx_rate() const
{
    return m_link_tx_rate;
}

/*!
 * @brief This function returns a reference to member link_tx_rate
 * @return Reference to member link_tx_rate
 */
onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_tx_rate()
{
    return m_link_tx_rate;
}
/*!
 * @brief This function copies the value in member link_rx_rate
 * @param _link_rx_rate New value to be copied in member link_rx_rate
 */
void onboard_computer_status::link_rx_rate(const onboard_computer_status__unsigned_long_array_6 &_link_rx_rate)
{
m_link_rx_rate = _link_rx_rate;
}

/*!
 * @brief This function moves the value in member link_rx_rate
 * @param _link_rx_rate New value to be moved in member link_rx_rate
 */
void onboard_computer_status::link_rx_rate(onboard_computer_status__unsigned_long_array_6 &&_link_rx_rate)
{
m_link_rx_rate = std::move(_link_rx_rate);
}

/*!
 * @brief This function returns a constant reference to member link_rx_rate
 * @return Constant reference to member link_rx_rate
 */
const onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_rx_rate() const
{
    return m_link_rx_rate;
}

/*!
 * @brief This function returns a reference to member link_rx_rate
 * @return Reference to member link_rx_rate
 */
onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_rx_rate()
{
    return m_link_rx_rate;
}
/*!
 * @brief This function copies the value in member link_tx_max
 * @param _link_tx_max New value to be copied in member link_tx_max
 */
void onboard_computer_status::link_tx_max(const onboard_computer_status__unsigned_long_array_6 &_link_tx_max)
{
m_link_tx_max = _link_tx_max;
}

/*!
 * @brief This function moves the value in member link_tx_max
 * @param _link_tx_max New value to be moved in member link_tx_max
 */
void onboard_computer_status::link_tx_max(onboard_computer_status__unsigned_long_array_6 &&_link_tx_max)
{
m_link_tx_max = std::move(_link_tx_max);
}

/*!
 * @brief This function returns a constant reference to member link_tx_max
 * @return Constant reference to member link_tx_max
 */
const onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_tx_max() const
{
    return m_link_tx_max;
}

/*!
 * @brief This function returns a reference to member link_tx_max
 * @return Reference to member link_tx_max
 */
onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_tx_max()
{
    return m_link_tx_max;
}
/*!
 * @brief This function copies the value in member link_rx_max
 * @param _link_rx_max New value to be copied in member link_rx_max
 */
void onboard_computer_status::link_rx_max(const onboard_computer_status__unsigned_long_array_6 &_link_rx_max)
{
m_link_rx_max = _link_rx_max;
}

/*!
 * @brief This function moves the value in member link_rx_max
 * @param _link_rx_max New value to be moved in member link_rx_max
 */
void onboard_computer_status::link_rx_max(onboard_computer_status__unsigned_long_array_6 &&_link_rx_max)
{
m_link_rx_max = std::move(_link_rx_max);
}

/*!
 * @brief This function returns a constant reference to member link_rx_max
 * @return Constant reference to member link_rx_max
 */
const onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_rx_max() const
{
    return m_link_rx_max;
}

/*!
 * @brief This function returns a reference to member link_rx_max
 * @return Reference to member link_rx_max
 */
onboard_computer_status__unsigned_long_array_6& onboard_computer_status::link_rx_max()
{
    return m_link_rx_max;
}

size_t onboard_computer_status::getKeyMaxCdrSerializedSize(size_t current_alignment)
{
    size_t current_align = current_alignment;























    return current_align;
}

bool onboard_computer_status::isKeyDefined()
{
   return false;
}

void onboard_computer_status::serializeKey(eprosima::fastcdr::Cdr &scdr) const
{
    (void) scdr;
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
}
